package com.bmw.search.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.bmw.search.model.Information;
import com.bmw.search.util.bean.CommonQueryBean;



@Repository
public interface InformationDao {

	Information selectByPrimaryKey(@Param("id") Long id);

	int deleteByPrimaryKey(@Param("id") Long id);

	int insert(Information record);

	int updateByPrimaryKeySelective(Information record);

	List<Information> list4Page(Information record, @Param("commonQueryParam") CommonQueryBean query);

	long count(Information record);

	List<Information> list(Information record);

	List<Information> match(String word);

	int insertIfNotExist(Information info);

}